home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Shopper 121
/
Computer Shopper 121
/
Computer Shopper 121.iso
/
Internet
/
Demon
/
IEXPLORE
/
IEAKJAVA.EXE
/
CLASSR.EXE
/
sun
/
misc
/
ConditionLock.class
(
.txt
)
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Class File
|
1997-01-31
|
620 b
|
26 lines
package sun.misc;
public final class ConditionLock extends Lock {
private int state;
public ConditionLock() {
}
public ConditionLock(int var1) {
this.state = var1;
}
public synchronized void lockWhen(int var1) throws InterruptedException {
while(this.state != var1) {
this.wait();
}
((Lock)this).lock();
}
public synchronized void unlockWith(int var1) {
this.state = var1;
((Lock)this).unlock();
}
}